package com.lovo.remoteservice;/*
 *Created with IntelliJ IDEA
 *Desrciption:
 *@ return:
 *@ author:tr
 */

import com.lovo.dto.CommodityDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 拉取已上架商品远程调用接口
 */
@FeignClient(name = "sscweb")
public interface ICommodityService {
	/**
	 * 从商城后台拉取已上架商品
	 * @param commodityDtoList 已上架商品dto集合
	 */
	@PostMapping("commodity/findAllCommodityBySscSys")
	public void findAllCommodityBySscSys(@RequestBody List<CommodityDto> commodityDtoList);

	/**
	 *
	 * 设置用户审核状态远程
	 */
	@GetMapping("user/setAuditStatus/{userName}/{code}/{reason}/{level}")
	public String setAuditStatus(@PathVariable("userName") String userName, @PathVariable("code")Integer code, @PathVariable("reason")String reason, @PathVariable("level")String level);

	/**
	 * 设置用户冻结状态远程
	 */
	@GetMapping("user/setFreeze/{userName}/{code}")
	public String setFreeze(@PathVariable("userName")String userName,@PathVariable("code")Integer code);



}
